
//
//  WSJCareNursingPeopleCell.m
//  WSJCareNursingPeopleView
//
//  Created by wsj2015 on 16/4/8.
//  Copyright © 2016年 wsj2015. All rights reserved.
//

#import "WSJCareNursingPeopleCell.h"
#import "WCImageView +setImage.h"
@implementation WSJCareNursingPeopleCell

- (void)awakeFromNib {
    // Initialization code
    self.headIcon.layer.cornerRadius = 32;
    self.headIcon.layer.masksToBounds = YES;
    
   
    
}


- (IBAction)deleAction:(id)sender {
    
    if (self.deleBlock) {
        self.deleBlock();
    }
}
- (void)setModel:(WCNNurseModel *)model{
    _model = model;
    self.nameLabel.text = model.name;

//    [self.headIcon setImageWithUrl:model.avatarFileId];
    [self.headIcon wsjSetImageWithUrl:model.avatarFileId withPlaceImageName:@"Nurse_default"];
//    if (model.isPrimary ==1) {
//        self.userInteractionEnabled = NO;
//    }else{
//        self.userInteractionEnabled = YES;
//    }
    
}
@end
